package com.tedu.show.menus;

import com.tedu.controller.GameController;

import javax.swing.*;

public class StartScreen extends BaseScreen {
    public StartScreen() {
        super("game_start");

        // 开始游戏按钮
        JButton startButton = new JButton("开始游戏");
        startButton.setBounds(300, 360, 200, 50);
        startButton.addActionListener(e -> GameController.switchPanel(GameController.GameState.SELECTION));
        this.add(startButton);

        // 退出游戏按钮
        JButton exitButton = new JButton("退出游戏");
        exitButton.setBounds(300, 440, 200, 50);
        exitButton.addActionListener(e -> System.exit(0)); // 点击后直接退出程序
        this.add(exitButton);
    }
}
